"use strict";
import * as React from 'react';
import { commonStyles } from "../assets/styles/common";
import MyIcon from "./icon";
import MyText from "./MyText";
import { orderHeaderItemStyles } from "../assets/styles/orderItem";
const { View, Text } = require('react-native');
const { connect } = require('react-redux');
class OrderHeaderItem extends React.Component {
    render() {
        const { icon, text, color, style } = this.props;
        return (<View style={[commonStyles.flexRow, orderHeaderItemStyles.container, style]}>
                <MyIcon name={icon} color={color}/>
                <MyText color={color} fontSize={14} style={orderHeaderItemStyles.text}>{text}</MyText>
            </View>);
    }
}
OrderHeaderItem.defaultProps = {
    style: null,
    icon: '',
    text: '',
    color: '',
};
export default OrderHeaderItem;
